<template>
  <div class="domain-management">
    <h2>网站详情</h2>
    <el-table :header-cell-style="{ background: '#EBEEF2' }" :data="tableData" style="border: 1px #000000 solid;width: 100%;padding: 16px;">
      <el-table-column prop="name" label="网站名称"></el-table-column>
      <el-table-column prop="domain" label="域名"></el-table-column>
      <el-table-column prop="provider" label="域名服务商"></el-table-column>
      <el-table-column prop="status" label="启用">
        <template slot-scope="scope">
          <el-tag :type="scope.row.status === '启用' ? 'success' : 'danger'">{{ scope.row.status }}</el-tag>
        </template>
      </el-table-column>
      <el-table-column prop="recordNumber" label="备案号"></el-table-column>
      <el-table-column prop="expirationDate" label="到期时间"></el-table-column>
      <el-table-column prop="collaborators" label="协作者"></el-table-column>
      <el-table-column prop="state" label="状态">
        <template slot-scope="scope">
          <el-tag :type="scope.row.state === '正常' ? 'success' : 'danger'">{{ scope.row.state }}</el-tag>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'Laucher',
  data() {
    return {
      countDown: 5,
      timer: null,
      tableData: [
        {
          name: '艾兰维技术平台',
          domain: 'www.i3vsoft.com',
          provider: '阿里云',
          status: '启用',
          recordNumber: '粤ICP342342D',
          expirationDate: '2030.06.30',
          collaborators: '共 3 人',
          state: '正常'
        },
        {
          name: '豆商城',
          domain: 'www.DDSHOP.com',
          provider: '阿里云',
          status: '关闭',
          recordNumber: '粤ICP2323462',
          expirationDate: '2030.06.30',
          collaborators: '共 28 人',
          state: '异常'
        }
      ]
    };
  }
};
</script>

<style scoped>


.domain-management {
  padding: 16px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

h2 {
  margin-bottom: 20px;
  font-weight: bold;
}

/* 使用深度选择器 ::v-deep 来确保样式应用到表头 */
::v-deep .el-table th {
  /* background-color: #f5f5f5 !important; */
  color: #333 !important;
  font-size: 14px !important;
}

/* 确保最后一行的背景色一致 */
/* ::v-deep .el-table__body-wrapper tbody tr:last-child {
  background-color: inherit !important;
} */


#Laucher {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>